package com.lhj.xxsc.product.feign.fallback;

import com.lhj.xxsc.product.feign.SeckillFeignService;
import com.xxsc.common.exception.BizCodeEnume;
import com.xxsc.common.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author 罗惠江
 * @version 1.0
 * @email 1511619294@qq.com
 * @date 2021/2/25 22:45
 */
@Slf4j
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
	@Override
	public R getSkuSeckillInfo(Long skuId) {
		log.error("熔断方法调用》》》》》》"+skuId);
		return R.error(BizCodeEnume.TO_MAX_REQUEST.getCode(), BizCodeEnume.TO_MAX_REQUEST.getMsg());
	}
}
